#ifndef ACCOUNT_ACCOUNTBUDDY_H
#define ACCOUNT_ACCOUNTBUDDY_H

#include "accountmember.h"


namespace Account {

class Buddy : public Member
{
    Q_OBJECT


public:
    explicit Buddy(qint64 id, QObject *parent = 0);
    Buddy(const Profile::ProfileData &profile,
          QObject *parent = 0);

private:
    qint64 m_lastContactTime;

Q_SIGNALS:
    void lastContactTimeSet(Member *member);
    void lastContactTimeUpdated(Member *member);

public:
    virtual Member::MemberType type() const;

public:
    void setLastContactTime(qint64 time);
    qint64 lastContactTime() const;

    void updateLastContactTime(qint64 time);
};

} // namespace Account

#endif // ACCOUNT_ACCOUNTBUDDY_H
